a = int(input("Please insert a:" ))
n = 0
while a>1 :
    if a%2==0:
        a=a/2
        print ("a=",a)
        n=n+1
        print ("change",n)
    else:
        a=a*3+1
        print ("a=",a)
        n=n+1
        print ("change",n)
    if a==1:
        break

